const define = {
    state: () => (
        {
            companyId: null,
            // 列表
            list: []
        }
    ),
    actions: {
        getCompanyId() {
            return this.companyId;
        },
        setCompanyId(companyId) {
            this.companyId = companyId;
        },
        // 获取列表
        getList() {
            return this.list;
        },
        // 设置列表
        setList(list) {
            this.list = list;
        }
    }
}

const useStore = defineStore('department', define);

export default useStore